﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Model;
using SaleManagement.Entity;

namespace SaleManagement.Services.Mapping
{
   public class ContactMapping
    {
       public static Contact ConvertToEntity(ViewModelContact model)
       {
           Contact entity = new Contact();
           entity.ContactContent = model.ContactContent;
           entity.Email = model.Email;
           entity.Id = model.Id;
           entity.Name = model.Name;
           entity.Status = model.Status;
           entity.Subject = model.Subject;
           return entity;
       }
    }
}
